package com.bruce.pattern.structural.bridge;

import org.junit.Test;

/**
 * Created by bruce on 2018/11/6 21:53
 */
public class MainTest {

    @Test
    public void test(){
        Bank icbcBank = new ICBCBank(new DepositAccout());
        Account icbcAccount = icbcBank.open();
        icbcAccount.showType();

        Bank icbcBank2 = new ICBCBank(new SavingAccount());
        Account icbcAccount2 = icbcBank2.open();
        icbcAccount2.showType();


        Bank abcBank = new ABCBank(new SavingAccount());
        Account abcAccount = abcBank.open();
        abcAccount.showType();





    }






}
